package com.usian.mapper;

//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import com.usian.pojo.Zhuce;
import org.apache.ibatis.annotations.*;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ZhuceMapper extends Mapper<Zhuce> {
    public List<Zhuce> findAll();

    @Select("select * from zhuce where name=#{zhuce.name} and pass=#{zhuce.pass} and uzid=#{zhuce.uzid}")
    public List<Zhuce> findZhuce(@Param("zhuce") Zhuce zhuce);
    @Insert("insert into zhuce(name,pass,uzid) values(#{name},#{pass},#{uzid})")
    public void addZhuce(Zhuce zhuce);

    @Delete("delete from user where userId=#{id}")
    void del(Integer id);
    @Select("select * from user where userId=#{id}")
    User editId(Integer integer);
    @Update("update user set userName=#{userName},password=#{password},userType=#{userType},roleId=#{roleId},userDescription=#{userDescription},inputDate=#{inputDate} where userId=#{userId}")
    void editZhuce(Zhuce zhuce);
}
